<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>年审</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="<%=request.getContextPath()%>/js/meizzDate.js"></script>
		<script language="javascript">
	function check(){
   		var pwd = document.frm.UserPassword.value;
   		var pwd1 = document.frm.UserPassword1.value;
   		if(pwd.length <= 16 && pwd.length >= 6) {
	   		 if (pwd != pwd1) {
	         alert("两个密码不相同");
	         return false;
	      }
	}else{
	 alert("密码为6—16位之间");
	 return false;	
	} 


}

		</script>
</head>

<body>
<div align="right"><br></div><form action="<%=request.getContextPath()%>/newsQuery.do?method=modifyPass" name="frm" method="post" onSubmit="return check();">
<table width="70%">
   <tr>
    <td width="25%" align="right" class="bg_blue"><p>新密码</p>
    </td>
    <td width="75%" align="left">
   <input type="password" name="UserPassword" value="" size="16"/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hui">密码字符数为6-16位之间，字母、数字、符号均可</span>
    </td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">确认密码
    </td>
    <td align="left"><input type="password" name="UserPassword1" value="" size="16"/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hui">请再次输入上面的密码</span></p></td>
  </tr>
  <c:if test="${!empty operFlag}">
  <tr>
    <td class="nohover" align="center" colspan="2" > <font color=red>密码修改成功，请您下次登陆的时候使用此密码！</font></td>
  </tr>
</c:if>
  
  <tr>
    <td class="nohover" colspan="2" align="center"><input class="buttonsubmit" type="submit" value="确定">&nbsp;&nbsp;&nbsp;&nbsp;<input class="buttonreset" type="reset" value="重置"></td>
  </tr>
</table>
</form>
</body>
</html>
